<!--添加价格-->
<div class="dialog_content">
    <form id="info_form" action="{:url('addDo')}" method="post">
        <input type="hidden" name="house_id" value="{$house.id}">
        <input type="hidden" name="city" value="{$house.city}">
        <input type="hidden" name="area" value="{$house.area}">
        <table width="100%" class="table_form">
            <tr>
                <th width="80">增加时间 :</th>
                <td>
                    <input type="text"  size="20" class="date" id="date_time" readonly="" onclick="myCalendar();" value="{:date('Y-m-d')}" name="date_time">
                </td>
            </tr>
            <tr>
                <th>最高价 :</th>
                <td><input type="text" name="max_price" id="max_price" class="input-text" size="20">元/平米</td>
            </tr>
            <tr>
                <th>最低价 :</th>
                <td><input type="text" name="min_price" id="min_price" class="input-text" size="20">元/平米</td>
            </tr>
            <tr>
                <th>平均价格 :</th>
                <td><input type="text" name="average_price" id="average_price" class="input-text" size="20">元/平米</td>
            </tr>
            <tr>
                <th>价格描述:</th>
                <td><textarea name="memo" style="width: 330px;height: 100px;"></textarea></td>
            </tr>
        </table>
    </form>
</div>
<script src="__PUBLIC__/js/calendar/WdatePicker.js" charset="utf-8"></script>
<script>
    $(function(){
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#date_time").formValidator({onshow:'请选择时间',onfocus:'选择时间'}).inputValidator({min:1,onerror:'选择时间'});

        $('#info_form').ajaxForm({success:complate,dataType:'json'});
        function complate(result){
            if(result.status == 1){
                $.dialog.get(result.dialog).close();
                $.yingloujie.tip({content:result.msg});
                setTimeout(function(){window.location.reload();},1000);
            } else {
                $.yingloujie.tip({content:result.msg, icon:'alert'});
            }
        }
    });
</script>